<#include "../common/layout.ftl"/>
<@layout>
<div class="well">
	<span class="label label-success">添加泊车价格</span>
	
	<form id="form1" class="well form-horizontal" action="/newOrder/saveParkPrice"  method="post">
	  <input type="hidden" name="cityId" value="${cityId}"/>
	  <#list parkPriceList as parkPrice>
	  	<div class="form-actions" style="margin:0px">
			${parkPrice.start_time}至${parkPrice.end_time}时,价格${parkPrice.price}元<button type="button" class="btn btn-danger" onclick="parkPriceDelete('${parkPrice.id}')">删 除</button>
	  	</div>
	  </#list>
	  
	  <div class="control-group">
	  	  <div class="form-actions" style="margin:0px"></div>
	      <label class="control-label">时间：</label>
	      <div class="controls">
	         <select name="startTime">
	          <option value="00">00时</option>
			  <option value="01">01时</option>
			  <option value="02">02时</option>
			  <option value="03">03时</option>
			  <option value="04">04时</option>
			  <option value="05">05时</option>
			  <option value="06">06时</option>
			  <option value="07">07时</option>
			  <option value="08">08时</option>
			  <option value="09">09时</option>
			  <option value="10">10时</option>
			  <option value="11">11时</option>
			  <option value="12">12时</option>
			  <option value="13">13时</option>
			  <option value="14">14时</option>
			  <option value="15">15时</option>
			  <option value="16">16时</option>
			  <option value="17">17时</option>
			  <option value="18">18时</option>
			  <option value="19">19时</option>
			  <option value="20">20时</option>
			  <option value="21">21时</option>
			  <option value="22">22时</option>
			  <option value="23">23时</option>
			</select>
			至
			<select name="endTime">
			  <option value="00">00时</option>
			  <option value="01">01时</option>
			  <option value="02">02时</option>
			  <option value="03">03时</option>
			  <option value="04">04时</option>
			  <option value="05">05时</option>
			  <option value="06">06时</option>
			  <option value="07">07时</option>
			  <option value="08">08时</option>
			  <option value="09">09时</option>
			  <option value="10">10时</option>
			  <option value="11">11时</option>
			  <option value="12">12时</option>
			  <option value="13">13时</option>
			  <option value="14">14时</option>
			  <option value="15">15时</option>
			  <option value="16">16时</option>
			  <option value="17">17时</option>
			  <option value="18">18时</option>
			  <option value="19">19时</option>
			  <option value="20">20时</option>
			  <option value="21">21时</option>
			  <option value="22">22时</option>
			  <option value="23">23时</option>
			</select>
			</div>
	   </div>
      <div class="control-group">
        <label class="control-label" for="initialPrice">价格：</label>
        <div class="controls">
          <input class="focused" style="width:100px" id="price" name="price" type="text"  style="height: 26" >元
        </div>
      </div>
      <div class="form-actions">
        <button type="submit" class="btn btn-primary">确 定</button>
        <button type="reset" class="btn">重 置</button>
        <button type="button" class="btn btn-info" onclick="javascript:history.back();">返回</button>
      </div>
  </form>
  </div>

<script>
function parkPriceDelete(id){
	location.href="/newOrder/deleteParkPrice/"+id;
}
</script>
</@layout>